/*
 * communication.h
 *
 *  Created on: 2 mei 2013
 *      Author: Pascal
 */

#ifndef COMMUNICATION_H_
#define COMMUNICATION_H_

// This code requires the  ws2_32.lib Winsock Library
//#define _WIN32_WINNT 0x0601
#define WINVER 0x0601
#define NTDDI_VERSION 0x06010000
//#define _WIN32_WINNT 0x0501

#define DEFAULT_PORT "81"

#include <ws2tcpip.h>
#include <stdio.h>
#include <winsock2.h>
#include <iphlpapi.h>
#include <stdio.h>

int initSocket();
SOCKET waitForConnection();
int waitForData(SOCKET, char [], int);

#endif /* COMMUNICATION_H_ */
